﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Warp9
{
    class Player
    {
        private World world;
        private Controls controls;
        private Camera camera;
        public Player(World myWorld, Controls myControls, Camera myCamera)
        {
            world = myWorld;
            controls = myControls;
            camera = myCamera;
        }
        public void Update(GameTime gameTime)
        {
            controls.HandleInput(this,gameTime);
        }
        public void ResetWorld(int newSize)
        {
            int currentSize = world.GetSize();
            world.Reset(newSize);
            camera.ResetCamera(world.GetSize());
        }
        public void ErodeWorld(int erosion)
        {
            world.Terrain.Erode(erosion);
        }
        public void CreateMountains(int quantity)
        {
            world.Terrain.SpawnMountains(quantity);
        }
    }
}
